# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DFAReporting.V34.Model.PopupWindowProperties do
  @moduledoc """
  Popup Window Properties.

  ## Attributes

  *   `dimension` (*type:* `GoogleApi.DFAReporting.V34.Model.Size.t`, *default:* `nil`) - Popup dimension for a creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID
  *   `offset` (*type:* `GoogleApi.DFAReporting.V34.Model.OffsetPosition.t`, *default:* `nil`) - Upper-left corner coordinates of the popup window. Applicable if positionType is COORDINATES.
  *   `positionType` (*type:* `String.t`, *default:* `nil`) - Popup window position either centered or at specific coordinate.
  *   `showAddressBar` (*type:* `boolean()`, *default:* `nil`) - Whether to display the browser address bar.
  *   `showMenuBar` (*type:* `boolean()`, *default:* `nil`) - Whether to display the browser menu bar.
  *   `showScrollBar` (*type:* `boolean()`, *default:* `nil`) - Whether to display the browser scroll bar.
  *   `showStatusBar` (*type:* `boolean()`, *default:* `nil`) - Whether to display the browser status bar.
  *   `showToolBar` (*type:* `boolean()`, *default:* `nil`) - Whether to display the browser tool bar.
  *   `title` (*type:* `String.t`, *default:* `nil`) - Title of popup window.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :dimension => GoogleApi.DFAReporting.V34.Model.Size.t() | nil,
          :offset => GoogleApi.DFAReporting.V34.Model.OffsetPosition.t() | nil,
          :positionType => String.t() | nil,
          :showAddressBar => boolean() | nil,
          :showMenuBar => boolean() | nil,
          :showScrollBar => boolean() | nil,
          :showStatusBar => boolean() | nil,
          :showToolBar => boolean() | nil,
          :title => String.t() | nil
        }

  field(:dimension, as: GoogleApi.DFAReporting.V34.Model.Size)
  field(:offset, as: GoogleApi.DFAReporting.V34.Model.OffsetPosition)
  field(:positionType)
  field(:showAddressBar)
  field(:showMenuBar)
  field(:showScrollBar)
  field(:showStatusBar)
  field(:showToolBar)
  field(:title)
end

defimpl Poison.Decoder, for: GoogleApi.DFAReporting.V34.Model.PopupWindowProperties do
  def decode(value, options) do
    GoogleApi.DFAReporting.V34.Model.PopupWindowProperties.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.DFAReporting.V34.Model.PopupWindowProperties do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
